'****************************************************************************'
'                                                                            '
' Copyright (C) 2010 Muhammad alaa                                           '
'                                                                            '
' This program is free software; you can redistribute it and/or modify       '
' it under the terms of the GNU General Public License as published by       '
' the Free Software Foundation; either version 2 of the License, or          '
' (at your option) any later version.                                        '
'                                                                            '
' This program is distributed in the hope that it will be useful,            '
' but WITHOUT ANY WARRANTY; without even the implied warranty of             '
' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              '
' GNU General Public License for more details.                               '
'                                                                            '
' You should have received a copy of the GNU General Public License along    '
' with this program; if not, write to the Free Software Foundation, Inc.,    '
' 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.                '
'                                                                            '
'****************************************************************************'

Public Class Constants

    Public Const STGM_READ As Integer = 0
    Public Const STGM_WRITE As Integer = 1
    Public Const STGM_READWRITE As Integer = 2
    Public Const STGM_SHARE_DENY_NONE As Integer = &H40
    Public Const STGM_SHARE_DENY_READ As Integer = &H30
    Public Const STGM_SHARE_DENY_WRITE As Integer = &H20
    Public Const STGM_SHARE_EXCLUSIVE As Integer = &H10
    Public Const STGM_PRIORITY As Integer = &H40000
    Public Const STGM_CREATE As Integer = &H1000
    Public Const STGM_CONVERT As Integer = &H20000
    Public Const STGM_FAILIFTHERE As Integer = 0
    Public Const STGM_DIRECT As Integer = 0
    Public Const STGM_TRANSACTED As Integer = &H10000
    Public Const STGM_NOSCRATCH As Integer = &H100000
    Public Const STGM_NOSNAPSHOT As Integer = &H200000
    Public Const STGM_SIMPLE As Integer = &H8000000
    Public Const STGM_DIRECT_SWMR As Integer = &H400000
    Public Const STGM_DELETEONRELEASE As Integer = &H4000000

    Public Const ACTRL_ACCESS_PROTECTED As Integer = 1

    Public Const ACTRL_ACCESS_ALLOWED As Integer = &H0
    Public Const ACTRL_ACCESS_DENIED As Integer = &H10000000

    Public Const IS_NORMAL As Integer = &H1
    Public Const IS_FULLSCREEN As Integer = &H2
    Public Const IS_SPLIT As Integer = &H4
    Public Const IS_VALIDSIZESTATEBITS As Integer = (IS_NORMAL Or IS_SPLIT Or IS_FULLSCREEN)
    Public Const IS_VALIDSTATEBITS As Integer = (IS_NORMAL Or IS_SPLIT Or IS_FULLSCREEN Or &H80000000 Or &H40000000)

    Public Const MAX_PATH As Integer = 260

    Public Const INTERNET_MAX_HOST_NAME_LENGTH As Integer = 256
    Public Const INTERNET_MAX_USER_NAME_LENGTH As Integer = 128
    Public Const INTERNET_MAX_PASSWORD_LENGTH As Integer = 128
    Public Const INTERNET_MAX_PORT_NUMBER_LENGTH As Integer = 5
    Public Const INTERNET_MAX_PORT_NUMBER_VALUE As Integer = 65535
    Public Const INTERNET_MAX_PATH_LENGTH As Integer = 2048
    Public Const INTERNET_MAX_SCHEME_LENGTH As Integer = 32
    Public Const INTERNET_MAX_URL_LENGTH As Integer = INTERNET_MAX_SCHEME_LENGTH + INTERNET_MAX_PATH_LENGTH + 3

    Public Const ADDURL_SILENT As Integer = &H1

    Public Const COMPONENT_DEFAULT_LEFT As Integer = &HFFFF
    Public Const COMPONENT_DEFAULT_TOP As Integer = &HFFFF

    Public Const AD_APPLY_BUFFERED_REFRESH As Integer = &H10
    Public Const AD_APPLY_COMPLETEREFRESH As Integer = &H20
    Public Const AD_APPLY_DYNAMICREFRESH As Integer = &H20
    Public Const AD_APPLY_FORCE As Integer = &H8
    Public Const AD_APPLY_HTMLGEN As Integer = &H2
    Public Const AD_APPLY_REFRESH As Integer = &H4
    Public Const AD_APPLY_SAVE As Integer = &H1
    Public Const AD_APPLY_ALL As Integer = (AD_APPLY_SAVE Or AD_APPLY_HTMLGEN Or AD_APPLY_REFRESH)

    Public Const AD_GETWP_BMP As Integer = &H0
    Public Const AD_GETWP_IMAGE As Integer = &H1
    Public Const AD_GETWP_LAST_APPLIED As Integer = &H2

End Class